package com.springmvc2.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.springmvc2.entity.User;

@Mapper
public interface UserMapper {
	@Select("Select * from user")
	List<User> getAllUser();
	
	@Select("Select * From user Where username=#{username}")
	User findUserByUsername(@Param("username") String username);
}
